package cn.ultrarisk.scadmin.manager.scheduler;

import cn.ultrarisk.scadmin.manager.biz.zookeeper.entity.ZkBackup;
import cn.ultrarisk.scadmin.manager.biz.zookeeper.service.ZkBackupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * ZkBackupScheduler
 *
 * @author sevendlong(lin23871@163.com)
 * @date 2014/5/23
 * @since V1.0
 */
@Component
public class ZkBackupScheduler {
    @Autowired
    private ZkBackupService zkBackupService;

    public void execute() throws Exception {
        zkBackupService.create("/", "定时自动备份", ZkBackup.TYPE_AUTO);
    }
}
